#-*-encoding=utf-8-*-
name=u'task_manager'
title=u'任务管理'
description=''
fields=(
    TextLineField(
        description='',
        title=u'任务名称',
        validation_exp=u'',
        write_condition=u'',
        size=28,
        default_value_exp=u'""',
        name=u'title'
),
    TextField(
        rows=5,
        description='',
        title=u'详细描述',
        cols=10,
        validation_exp=u'',
        write_condition=u'',
        default_value_exp=u'""',
        name=u'description'
),
    PersonSelectField(
        title=u'负责人',
        multiple_selection=True,
        selectable_object='persononly',
        write_condition=u'',
        default_value_exp=u'None',
        name=u'responsible'
),
    PersonSelectField(
        title=u'检查人',
        multiple_selection=True,
        selectable_object='persononly',
        write_condition=u'',
        default_value_exp=u'None',
        name=u'reviewer'
),
    DateField(
        minutestep=1,
        description='',
        title=u'截止时间',
        showtime=True,
        validation_exp=u'',
        write_condition=u'',
        default_value_exp=u'datetime.datetime.today() + datetime.timedelta(1)',
        name=u'end'
),
    TextField(
        rows=5,
        description='',
        title=u'处理结果',
        cols=10,
        validation_exp=u'',
        write_condition=u'',
        default_value_exp=u'""',
        name=u'result'
),
    TextField(
        rows=5,
        description='',
        title=u'检查意见',
        cols=10,
        validation_exp=u'',
        write_condition=u'',
        default_value_exp=u'""',
        name=u'check_comment'
),
    SingleSelectField(
        description='',
        title=u'评分',
        validation_exp=u'',
        vocabulary_exp=u"[('S','优秀'), ('A','良好'), ('B','不错'), ('C','需提升')]",
        limit=4,
        write_condition=u'',
        default_value_exp=u'""',
        name=u'score'
),)

displayed_columns = [u'title', u'responsible']
fields_validation_script=ur""""""
